import request from '@/axios'

export interface FormData {
  real_name: string
  store_id: string
  mobile: string
}
export interface FormList {
  name: string
  store_id: string
}

// 账号管理检索框
export const searchProjectCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/user/select', data })
}
// 第三方检索框
export const searchSupplierCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/supplier/select', data })
}
// 仓库检索框
export const searchWarehouseCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/warehouse/select', data })
}
// 库区检索框
export const searchWarehouseAreaCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/warehouse/area/select', data })
}
// 库位检索框
export const searchStorageCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/warehouse/storage/select', data })
}
// 商品检索框
export const searchGoodsCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/goods/select', data })
}
// 用户检索框
export const searchStoreCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/store/user/select', data })
}
// 角色检索框
export const searchUserCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/user/role/select', data })
}
// 菜单检索框
export const searchMenuCateApi = (data): Promise<IResponse> => {
  return request.post({ url: '/user/menu/select', data })
}
// 门店检索框
export const searchStoreApi = (data): Promise<IResponse> => {
  return request.post({ url: '/store/select', data })
}
// 司机检索框
export const searchDriverApi = (data): Promise<IResponse> => {
  return request.post({ url: '/deliver/driver/select', data })
}
// 销售单检索框
export const searchOrderApi = (data): Promise<IResponse> => {
  return request.post({ url: '/store/order/select', data })
}
